##[group]Deploy repos,billing,actions
node scripts/deploy.mjs deploy --only "repos,billing,actions" --force --no-migrations --concurrency 2
##[endgroup]
shell: bash -e /home/runner/_temp/18dfae5c599ae2fb.sh
Deploying 82db908f6920 (Merge sudo: delete an account with the workspaces it alone owns, purge each)

unit     stage  action  live          migrations  why
-------  -----  ------  ------------  ----------  -------------------------------------------------------------------------------
repos    core   deploy  b395f99b4c26  -           2 changed files (crates/contracts/src/account_deletion.rs via crates/contracts)
billing  core   deploy  b395f99b4c26  -           2 changed files (crates/contracts/src/account_deletion.rs via crates/contracts)
actions  core   deploy  b395f99b4c26  -           2 changed files (crates/contracts/src/account_deletion.rs via crates/contracts)

3 to deploy: core (repos, billing, actions)
== core: repos, billing, actions
[repos]  ⛅️ wrangler 4.146.0
[repos] ────────────────────
[repos] [custom build] Running: node ../../scripts/build-rust-worker.mjs
[billing]  ⛅️ wrangler 4.146.0
[billing] ────────────────────
[billing] [custom build] Running: node ../../scripts/build-rust-worker.mjs
[billing] [custom build] [INFO]: Checking for the Wasm target...
[billing] [custom build] 
[repos] [custom build] [INFO]: Checking for the Wasm target...
[repos] [custom build] 
[repos] [custom build] [INFO]: Compiling to Wasm...
[repos] [custom build] 
[billing] [custom build] [INFO]: Compiling to Wasm...
[billing] [custom build] 
[repos] [custom build]     Blocking waiting for file lock on package cache
[repos] [custom build] 
[billing] [custom build]     Blocking waiting for file lock on package cache
[billing] [custom build] 
[repos] [custom build]     Blocking waiting for file lock on package cache
[repos] [custom build] 
[repos] [custom build]     Blocking waiting for file lock on package cache
[repos] [custom build] 
[billing] [custom build]     Blocking waiting for file lock on package cache
[billing] [custom build] 
[billing] [custom build]     Blocking
[billing] [custom build]  waiting for file lock on package cache
[billing] [custom build] 
[billing] [custom build]     Blocking waiting for file lock on build directory
[billing] [custom build] 
[repos] [custom build]    Compiling g1t-contracts v0.1.0 (/home/runner/work/repo/crates/contracts)
[repos] [custom build] 
[repos] [custom build]    Compiling g1t-secrets v0.1.0 (/home/runner/work/repo/crates/secrets)
[repos] [custom build]    Compiling g1t-scan v0.1.0 (/home/runner/work/repo/crates/scan)
[repos] [custom build] 
[repos] [custom build]    Compiling g1t-kit v0.1.0 (/home/runner/work/repo/crates/kit)
[repos] [custom build]    Compiling g1t-rules v0.1.0 (/home/runner/work/repo/crates/rules)
[repos] [custom build] 
[repos] [custom build]    Compiling g1t-blobstore v0.1.0 (/home/runner/work/repo/crates/blobstore)
[repos] [custom build] 
[repos] [custom build]    Compiling g1t-repos v0.1.0 (/home/runner/work/repo/services/repos)
[repos] [custom build] 
[repos] [custom build] warning: unused import: `worker::Result`
[repos] [custom build]   --> services/repos/src/drift.rs:15:5
[repos] [custom build]    |
[repos] [custom build] 15 | use worker::Result;
[repos] [custom build]    |     ^^^^^^^^^^^^^^
[repos] [custom build]    |
[repos] [custom build]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[repos] [custom build] 
[repos] [custom build] 
[repos] [custom build] warning: `g1t-repos` (lib) generated 1 warning (run `cargo fix --lib -p g1t-repos` to apply 1 suggestion)
[repos] [custom build]     Finished `release` profile [optimized] target(s) in 1m 16s
[repos] [custom build] 
[billing] [custom build]    Compiling g1t-billing v0.1.0 (/home/runner/work/repo/services/billing)
[billing] [custom build] 
[repos] [custom build] [INFO]: Optimizing wasm binaries with `wasm-opt`...
[repos] [custom build] 
[repos] [custom build] [INFO]: :-)Done in 1m 21s
[repos] [custom build] [INFO]: :-) Your wasm pkg is ready to publish at /home/runner/work/repo/services/repos/build/.tmp.
[repos] [custom build] 
[repos] [custom build] 
[repos] [custom build]   index.js  31.9kb
[repos] [custom build] 
[repos] [custom build] ⚡ Done in 10ms
[repos] [custom build] 
[repos] Total Upload: 6510.39 KiB / gzip: 1681.57 KiB
[repos] Worker Startup Time: 7 ms
[repos] Your Worker has access to the following bindings:
[repos] Binding                                                                Resource                  
[repos] env.GIT_CACHE (be765052d0124c2a935b3db4dff99f1f)                       KV Namespace              
[repos] env.DB (g1t-repos)                                                     D1 Database               
[repos] env.GIT_PACKS (g1t-git-packs)                                          R2 Bucket                 
[repos] env.BACKUPS (g1t-backups)                                              R2 Bucket                 
[repos] env.ARTIFACTS (g1t)                                                    Artifacts                 
[repos] env.IDENTITY (g1t-identity)                                            Worker                    
[repos] env.EVENTS (g1t-events)                                                Worker                    
[repos] env.SECURITY (g1t-security)                                            Worker                    
[repos] env.BILLING (g1t-billing)                                              Worker                    
[repos] env.WORK (g1t-work)                                                    Worker                    
[repos] env.BACKUP_STORE ("r2")                                                Environment Variable      
[repos] env.BACKUPS_PER_NIGHT ("200")                                          Environment Variable      
[repos] env.BACKUP_FULL_EVERY ("30")                                           Environment Variable      
[repos] env.GIT_OPERATIONS_FREE_CAP ("50000")                                  Environment Variable      
[repos] env.GIT_OPERATIONS_FREE_HOURLY ("60")                                  Environment Variable      
[repos] env.FREE_PRIVATE_STORAGE_BYTES ("1000000000")                          Environment Variable      
[repos] env.REPO_STORAGE_LIMIT_BYTES ("950000000")                             Environment Variable      
[repos] env.LARGE_PUSHES ("unscanned")                                         Environment Variable      
[repos] env.FORK_RETENTION_DAYS ("1")                                          Environment Variable      
[repos] env.ARTIFACTS_NAMESPACES ("{"ARTIFACTS":"g1t"}")                       Environment Variable      
[repos] env.ARTIFACTS_NEW_REPOS ("")                                           Environment Variable      
[repos] Uploaded g1t-repos (2.98 sec)
[repos] Deployed g1t-repos triggers (1.05 sec)
[repos]   schedule: 23 * * * *
[repos]   schedule: 53 2 * * *
[repos]   Consumer for g1t-events-repos
[repos] Current Version ID: e4a47092-02d6-42f1-9e78-e75d8d18c499
[actions]  ⛅️ wrangler 4.146.0 (update available 4.149.0)
[actions] ───────────────────────────────────────────────
[actions] [custom build] Running: node ../../scripts/build-rust-worker.mjs
[actions] [custom build] [INFO]: Checking for the Wasm target...
[actions] [custom build] 
[actions] [custom build] [INFO]: Compiling to Wasm...
[actions] [custom build] 
[actions] [custom build]     Blocking waiting for file lock on build directory
[actions] [custom build] 
[billing] [custom build]     Finished `release` profile [optimized] target(s) in 1m 47s
[billing] [custom build] 
[actions] [custom build]    Compiling g1t-contracts v0.1.0 (/home/runner/work/repo/crates/contracts)
[actions] [custom build] 
[actions] [custom build]    Compiling g1t-secrets v0.1.0 (/home/runner/work/repo/crates/secrets)
[actions] [custom build]    Compiling g1t-actions v0.1.0 (/home/runner/work/repo/crates/actions)
[actions] [custom build] 
[billing] [custom build] [INFO]: Optimizing wasm binaries with `wasm-opt`...
[billing] [custom build] 
[billing] [custom build] [INFO]: :-)Done in 1m 51s
[billing] [custom build] [INFO]: :-) Your wasm pkg is ready to publish at /home/runner/work/repo/services/billing/build/.tmp.
[billing] [custom build] 
[billing] [custom build] 
[billing] [custom build]   index.js  28.0kb
[billing] [custom build] 
[billing] [custom build] ⚡ Done in 6ms
[billing] [custom build] 
[billing] Total Upload: 4836.29 KiB / gzip: 1194.39 KiB
[billing] Worker Startup Time: 5 ms
[billing] Your Worker has access to the following bindings:
[billing] Binding                                                                       Resource                  
[billing] env.EMAIL (unrestricted)                                                      Send Email                
[billing] env.DB (g1t-billing)                                                          D1 Database               
[billing] env.IDENTITY (g1t-identity)                                                   Worker                    
[billing] env.REPOS (g1t-repos)                                                         Worker                    
[billing] env.PACKAGES (g1t-packages)                                                   Worker                    
[billing] env.MARGIN_PERCENT ("20")                                                     Environment Variable      
[billing] env.FREE_WHILE_BUILDING ("false")                                             Environment Variable      
[billing] env.PLAN_MONTHLY_CENTS ("2000")                                               Environment Variable      
[billing] env.PLAN_INCLUDED_MICROS ("10000000")                                         Environment Variable      
[billing] env.FREE_PRIVATE_STORAGE_BYTES ("1000000000")                                 Environment Variable      
[billing] env.PUBLIC_PACKAGES_FREE_BYTES ("10000000000")                                Environment Variable      
[billing] env.PRIVATE_PACKAGES_FREE_BYTES ("500000000")                                 Environment Variable      
[billing] env.FREE_AUDIT_RETENTION_DAYS ("7")                                           Environment Variable      
[billing] env.AUDIT_RETENTION_DAYS ("90")                                               Environment Variable      
[billing] env.AUDIT_MAX_DAYS ("400")                                                    Environment Variable      
[billing] env.TRIAL_WORKSPACE_MICROS ("5000000")                                        Environment Variable      
[billing] env.TRIAL_MONTHLY_POOL_MICROS ("100000000")                                   Environment Variable      
[billing] env.OSS_POOL_MICROS ("25000000")                                              Environment Variable      
[billing] env.OSS_REPO_MICROS ("2000000")                                               Environment Variable      
[billing] env.LIMIT_NEW_MICROS ("3000000")                                              Environment Variable      
[billing] env.LIMIT_PAID_START_MICROS ("100000000")                                     Environment Variable      
[billing] env.LIMIT_PAID_MIN_MICROS ("25000000")                                        Environment Variable      
[billing] env.LIMIT_PAID_MAX_MICROS ("1000000000")                                      Environment Variable      
[billing] env.ISSUE_CAP_MICROS ("10000000")                                             Environment Variable      
[billing] env.SPIKE_FACTOR ("5")                                                        Environment Variable      
[billing] env.SPIKE_FLOOR_MICROS ("5000000")                                            Environment Variable      
[billing] env.OVERAGE_FORGIVE_COST_MICROS ("50000000")                                  Environment Variable      
[billing] env.GIT_OPERATIONS_INCLUDED ("50000")                                         Environment Variable      
[billing] env.MIN_CHARGE_MICROS ("5000000")                                             Environment Variable      
[billing] env.CLOUDFLARE_ACCOUNT_ID ("1e6f2cffa3f445920836e8ebe446bb58")                Environment Variable      
[billing] env.AI_GATEWAY_ID ("g1t")                                                     Environment Variable      
[billing] env.COSTS_ALERT_EMAIL ("hey@flagon.io")                                       Environment Variable      
[billing] env.COMPED_MONTHLY_CEILING_MICROS ("150000000")                               Environment Variable      
[billing] env.PLATFORM_DAILY_SPEND_CAP_MICROS ("75000000")                              Environment Variable      
[billing] env.CLOUDFLARE_FIXED_MONTHLY_MICROS ("30000000")                              Environment Variable      
[billing] Uploaded g1t-billing (2.22 sec)
[billing] Deployed g1t-billing triggers (4.56 sec)
[billing]   schedule: */15 * * * *
[billing]   schedule: 17 4 * * *
[billing]   Consumer for g1t-events-billing
[billing] Current Version ID: 724e2795-d718-4589-86b0-ce47929a4a87
[actions] [custom build]    Compiling g1t-kit v0.1.0 (/home/runner/work/repo/crates/kit)
[actions] [custom build] 
[actions] [custom build]    Compiling g1t-actions-service v0.1.0 (/home/runner/work/repo/services/actions)
[actions] [custom build] 
[actions] [custom build]     Finished `release` profile [optimized] target(s) in 1m 14s
[actions] [custom build] 
[actions] [custom build] [INFO]: Optimizing wasm binaries with `wasm-opt`...
[actions] [custom build] 
[actions] [custom build] [INFO]: :-)Done in 1m 17s
[actions] [custom build] [INFO]: :-) Your wasm pkg is ready to publish at /home/runner/work/repo/services/actions/build/.tmp.
[actions] [custom build] 
[actions] [custom build] 
[actions] [custom build]   index.js  27.7kb
[actions] [custom build] 
[actions] [custom build] ⚡ Done in 17ms
[actions] [custom build] 
[actions] Total Upload: 4080.85 KiB / gzip: 1018.25 KiB
[actions] Worker Startup Time: 5 ms
[actions] Your Worker has access to the following bindings:
[actions] Binding                                    Resource         
[actions] env.DB (g1t-actions)                       D1 Database      
[actions] env.ACTIONS_CACHE (g1t-actions-cache)      R2 Bucket        
[actions] env.REPOS (g1t-repos)                      Worker           
[actions] env.WORK (g1t-work)                        Worker           
[actions] env.IDENTITY (g1t-identity)                Worker           
[actions] env.RUNNER (g1t-runner)                    Worker           
[actions] env.EVENTS (g1t-events)                    Worker           
[actions] env.PROJECTS (g1t-projects)                Worker           
[actions] env.BILLING (g1t-billing)                  Worker           
[actions] env.DEPLOYMENTS (g1t-deployments)          Worker           
[actions] Uploaded g1t-actions (3.12 sec)
[actions] Deployed g1t-actions triggers (1.61 sec)
[actions]   schedule: * * * * *
[actions]   Consumer for g1t-events-actions
[actions] Current Version ID: 5703704e-7a23-4f07-822c-32089aeb4861

unit     stage  result  version                               time    note
-------  -----  ------  ------------------------------------  ------  ----
repos    core   ok      e4a47092-02d6-42f1-9e78-e75d8d18c499  104.6s
billing  core   ok      724e2795-d718-4589-86b0-ce47929a4a87  137.5s
actions  core   ok      5703704e-7a23-4f07-822c-32089aeb4861  85.2s

Deployed in 193.6s.
